import http from "@/utils/request"

// 查询库存信息详情
export function getProcessCOut (pageNum, pageSize, processingId) {
  return http({
    url: `/processing/out-processing/page/${pageNum}/${pageSize}?processingId=${processingId}`,
    method: 'get'
  });
}

// 出库信息详情
export function getDetailById (id) {
  return http({
    url: `/processing/out-processing/info/${id}`,
    method: 'get'
  })
}

// 新增库存信息
export function outAddEvent (addForm) {
  return http({
    url: `/processing/out-processing/`,
    method: 'post',
    data: addForm,
  });
}

// 修改库存信息
export function outEditEvent (editForm, id) {
  return http({
    url: `/processing/out-processing/update/${id}`,
    method: 'put',
    data: editForm,
  });
}

// 删除
export function deleteStorage (id) {
  return http({
    url: `/processing/out-processing/deletion/${id}`,
    method: 'delete',
  });
}